
<!--
	user list !
-->
<h3>{{rootColumnName}}
    <small>{{rootColumnPrompt}}</small>
</h3>
<div  ng-controller="foldCtrl" class="panel panel-default">
    <div class="panel-heading">
        <form class="form-inline">
            <div class="form-group">
                <label for="">{{sortSelect}} : </label>
                <select class="custom-css form-control"  ng-model="foldSelectValue" ng-change="dataChange()" ng-options="foldSelectValue._value_ for foldSelectValue in foldType" >
                </select>
            </div>
        </form>
    </div>
    <div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
        <table class="table table-striped table-condensed">
            <thead>
            <tr>
                <th>标题</th>
                <th>评论内容</th>
                <th>评论时间</th>
                <th>没有帮助次数</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <!-- repeat begin -->
            <tr ng-repeat="evaluateItem in topicEvaluateList ">
                <td title="{{evaluateItem.title}}">{{evaluateItem.title | limitToNum : 20}}</td>
                <td>{{evaluateItem.content | limitToNum :20}}</td>
                <td>{{evaluateItem.createTime}}</td>
                <td>{{evaluateItem.notHelpCount}}</td>
                <td>
                    <a tooltip="详情" tooltip-trigger="mouseenter" class="btn btn-xs btn-primary" ui-sref="cms.foldDetail({ page : turnPage.currentPage, size : turnPage.itemsPerPage ,topicEvaluateId : evaluateItem.topicEvaluateId ,type : foldSelectValue.type})"><i class="fa fa-eye"></i></a>
                    <a tooltip="折叠" tooltip-trigger="mouseenter" class="btn btn-xs btn-warning" ng-click="foldTrue(evaluateItem.topicEvaluateId)">折叠</a>
                    <a tooltip="不折叠" tooltip-trigger="mouseenter" class="btn btn-xs btn-danger" ng-click="foldFalse(evaluateItem.topicEvaluateId)">不折叠</a>
                </td>
            </tr>
            <!-- repeat end -->
            </tbody>
        </table>
        <p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
        <pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize"
                    num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
        </pagination>
    </div>
</div>